package com.sojson.test.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.sojson.test.entity.po.TestDto;
import com.sojson.util.json.JsonUtil;

public interface ITestService extends IService<TestDto> {

    void run(int num, TestDto dto) throws Exception;

    default void out(String msg) {
        System.out.println("\033[31m======================" + msg + "======================\033[0m");
        System.out.println("\033[31m======================" + msg + "======================\033[0m");
        System.out.println("\033[31m======================" + msg + "======================\033[0m");
        System.out.print("\033[37m\033[0m");
    }

    default void out(Object msg) {
        System.out.println(JsonUtil.objectToJsonAll(msg));
    }

}